<?xml version="1.0" encoding="utf-8" ?>

[#include "/WEB-INF/pages/common/taglibs.ftl"]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Insert title here</title>
	<meta name="menu" content="CategoryMenu"/>
	<meta name="heading" content="heading"/>
	
	<style type="text/css">
		
	</style>
	
	<script type="text/javascript">
		var base = (function(){
				// 事件绑定
				function _addEventListeners() {
					
	            	$('#templateReview').click(function(){
	            		var _$form = $(this).parents('form');
	            		var _action = _$form.attr('action');
	            		[@c.url var="review" value='/manage/Category_review.action' scope="page"][/@c.url]
	            		var id = $(this).attr('ckey');
	            		//window.location = ${review};
	            		_$form.attr('action', '${review}').attr('target', '_bank');
	            		_$form.submit();
	            		_$form.attr('action', _action).removeAttr('target');
	            	})
				}
				return {
	                config: {
	                    theme: null
	                },
	                init: function () {
	                    _addEventListeners();
	                }
				}
			}());
		
			$(function(){
				base.config.url = "[@s.url value='/manage/Category_list.action?channelId=${channelId}'][/@s.url]";
				base.config.theme = getTheme();
	            //Initializing the form
            	base.init();		
			})
	</script>
</head>
<body id="body" class="category_create">
	<div class="contenttitle radiusbottom0">
    	<h2 class="table"><span>栏目维护</span></h2>
    </div>
	<!--设置提交行为-->
	[#assign act="update" /]
	[#include "/WEB-INF/pages/manage/Category/_category.ftl"]
</body>
</html>